 <!DOCTYPE html>
 <html lang="en">
 <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
 </head>
 <body>
    <div id="app">
        <div @click="showInfo">
            <!-- 修饰符可以连续写 -->
            <a href="http://www.baidu.com" @click.prevent.stop="showInfo"></a>
            <input type="text" @keyup.ctrl.y="showInfo"> 
            <!-- 只有ctrl + y才能触发showInfo -->
        </div>
    </div>
    <script src="../vuejs/vue.js"></script>
    <script>
        const vm = new Vue({
            el : '#app',
            data() {
                return {
                    name : 'geekrose'
                }
            },
            methods: {
                showInfo(){
                    console.log("showInfo");
                }
            },
        })
    </script>
 </body>
 </html>